﻿using Scrips.PlayerData;
using UnityEngine;

namespace Scrips.CharacterBehavior
{
    /// <summary>
    /// 左走
    /// </summary>
    public class WalkLeft:PlayerBaseMode
    {
        private void WalkLeftMode()
        {
            PlayerCurrentStateType = PlayerState.WalkLeft;
        }
        public override void Begin(object[] mParams)
        {
            WalkLeftMode();
            //播放动画
            //mPlayer.playerAni.SetInteger();
           // Debug.Log("走路");
        }

        public override void Update()
        {
            mPlayer.rigidbody.AddForce(new Vector3(-3,0,0));
           // base.Update();
           //状态期间该做什么
        }

        public override void End()
        {
            //状态结束后的行为
            base.End();
        }
    }
}